import { createRouter, createWebHistory } from "vue-router";
import About from "@/views/About.vue";

import Test from "@/views/Test/index.vue";
import NotFound from "@/views/NotFound.vue";
import Dashboard from "@/views/Pages/Dashboard/index.vue";
import MenuManage from "@/views/Systems/MenuManage/index.vue";
const routes = [
  {
    path: "/",
    name: "Dashboard",
    component: Dashboard,
  },
  {
    path: "/about",
    name: "About",
    component: About,
  },
  {
    path: "/MenuManage",
    name: "MenuManage",
    component: MenuManage,
  },
  {
    path: "/test/:name",
    name: "Test",
    component: Test,
  },
  {
    path: "/:pathMatch(.*)*",
    name: "NotFound",
    component: NotFound,
  },
];

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes,
});

export default router;
